<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在线答题系统</title>
    <link type="text/css" rel="stylesheet" href="css/style.css">
    <script type="text/javascript" src="./jQuery/jquery-3.6.0.min.js"></script>
    <script>
        $(function(){
            var login = $('.login');
            var type = $('#type');

            $('#btn_make').click(function(){
                login.css("display","block")
                type.attr("value","1");
            });
            $('#btn_result').click(function(){
                login.css("display","block")
                type.attr("value","2")
            });
            $('#close').onclick=function(){
                login.css("display","none")
            }
        });
    </script>
</head>
<body>
<div id="background">
    <img id="img" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fp1.itc.cn%2Fq_70%2Fimages03%2F20201118%2Fae476021e6b84f449017f2e7086da459.gif&refer=http%3A%2F%2Fp1.itc.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1667555466&t=84a0674e2aeebd8f4297ee4a81ebb964" alt="background">
</div>
<div id="module">

    <div>
        <h1>在线答题系统</h1>
    </div>
    <div class="ev_module">
        <button onclick="window.location.href='exam_page.html'">开始答题</button>
    </div>
    <div class="ev_module" >
        <input type="button" value="制作答案" id="btn_make">
    </div>
    <div class="ev_module">
        <input type="button" value="得分情况" id="btn_result">
    </div>
</div>

<div class="login">
    <div class="title">
        用户登录 <a href="" id="close">关闭</a>
    </div>
    <div class="login_content">
        <form action="LoginServlet" method="post">
            <p> 用户名：<input type="text" id="username" name="username"/> </p>
            <p>  密码：<input type="password" id="password" name="password"/> </p>
            <p><input type="hidden" id="type" name="type" value=""></p>
            <p> <input type="submit" value="提交" />
        </form>

    </div>
</div>

</body>
</html>